package com.bestsoft.web.controller.flow;
import com.bestsoft.common.core.controller.BaseController;
import com.bestsoft.common.core.domain.AjaxResult;
import com.bestsoft.flow.service.IFlowOrderDtVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 生产信息、运输信息Controller
 * 
 * @author yuanna
 * @date 2023-08-29
 */
@RestController
@RequestMapping("/flow/produceAndTrans")
public class FlowOrderDtVoController extends BaseController
{
    @Autowired
    private IFlowOrderDtVoService flowOrderDtVoService;

    /**
     * 获取生产信息、运输信息等
     */
//    @PreAuthorize("@ss.hasPermi('flow:goodsdoc:query')")
    @GetMapping(value = "/{qcode}")
    public AjaxResult getProduceAndTransInfo(@PathVariable("qcode") String qcode)
    {
        return success(flowOrderDtVoService.selectOrderDtVoByQcode(qcode));
    }
    @GetMapping(value = "/erp/{qcode}")
    public AjaxResult getProduceAndTransInfoErp(@PathVariable("qcode") String qcode)
    {
        return success(flowOrderDtVoService.selectOrderDtVoByQcodeErp(qcode));
    }
}
